<!--
 * @Descripttion: 
 * @Author: 银河以北
 * @Date: 2024-04-09 16:19:25
 * @LastEditors: 银河以北
 * @LastEditTime: 2024-04-09 17:15:25
-->
<template>
    <div @click="emitData()">
        子组件2
    </div>
</template>

<script>
    export default {
        props: {
            styleObject: {
                color: 'while'
            }
        },
        data() {
            return {
                message: '子组件2'

            }
        },
        created() {
            // this.$parent.on('add', this.add)
            // this.$utils.bus.$on('test', (data) => {
            //     console.log(data, 'xx')
            // })
        },
        methods: {
            emitData() {
                this.$emit("emitInfo", "这是发送的信息")
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>